package com.alfred.java.customannotationaop2.aop;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class ConfigAop {

    @Bean
    public Calc getCalc(){
        return new Calc();
    }

    @Bean
    public LogAspect getAspect(){
        return new LogAspect();
    }

}
